﻿/*  ----------------------------------------------------------------------------
 *  DES-Release 2
 *  ----------------------------------------------------------------------------
 *  File:       ServerElement.cs
 *  Author:     nitinkoshy@gmail.com
 *  Source:     http://des.codeplex.com/
 *  ----------------------------------------------------------------------------
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace DES.Server.Service.Config
{
    class ServerElement : ConfigurationElement
    {
        [ConfigurationProperty("id", IsKey = true, IsRequired = true)]
        public string Id
        {
            get 
            {
                return (string)this["id"];
            }
        }

        [ConfigurationProperty("endpoint", IsKey = false, IsRequired = true)]
        public string EndPoint
        {
            get 
            {
                return (string)this["endpoint"];
            }
        }
    }
}
